package com.denlaku.longan.service;

import com.denlaku.longan.vo.LexiconItem;
import org.apache.commons.collections4.ListUtils;
import org.lionsoul.jcseg.IWord;
import org.lionsoul.jcseg.dic.ADictionary;
import org.lionsoul.jcseg.dic.DictionaryFactory;
import org.lionsoul.jcseg.dic.ILexicon;
import org.lionsoul.jcseg.segmenter.SegmenterConfig;
import org.lionsoul.jcseg.segmenter.Word;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

/**
 * @author tianx
 */
public interface DictionaryService {
    ADictionary getOrInitDictionary(String namespace);

    void loadLexiconItems(String namespace, List<LexiconItem> lexiconItems);
}
